package com.rocketmq.temp3.service.bo.base;

import com.rocketmq.temp3.entity.po.Customer;
import com.rocketmq.temp3.entity.po.Product;
import com.rocketmq.temp3.repository.base.BaseDao;
import org.apache.rocketmq.spring.core.RocketMQTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.datasource.DataSourceTransactionManager;

public abstract class BaseService {

    protected static final String APP_KEY = "3BFBZ-ZKD3X-LW54A-ZT76D-E7AHO-4RBD5";

    @Autowired
    protected RocketMQTemplate rocketMQTemplate;

    @Autowired
    protected DataSourceTransactionManager dataSourceTransactionManager;

    @Autowired
    protected BaseDao<Customer> customerBaseDao;

    @Autowired
    protected BaseDao<Product> productBaseDao;

}
